import request from '@/utils/request'

// 创建订单估价信息
export function createOrderExpectPriceInfo(data) {
  return request({
    url: '/system/order-expect-price-info/create',
    method: 'post',
    data: data
  })
}

// 更新订单估价信息
export function updateOrderExpectPriceInfo(data) {
  return request({
    url: '/system/order-expect-price-info/update',
    method: 'put',
    data: data
  })
}

// 删除订单估价信息
export function deleteOrderExpectPriceInfo(id) {
  return request({
    url: '/system/order-expect-price-info/delete?id=' + id,
    method: 'delete'
  })
}

// 获得订单估价信息
export function getOrderExpectPriceInfo(id) {
  return request({
    url: '/system/order-expect-price-info/get?id=' + id,
    method: 'get'
  })
}

// 获得订单估价信息分页
export function getOrderExpectPriceInfoPage(params) {
  return request({
    url: '/system/order-expect-price-info/page',
    method: 'get',
    params
  })
}

// 导出订单估价信息 Excel
export function exportOrderExpectPriceInfoExcel(params) {
  return request({
    url: '/system/order-expect-price-info/export-excel',
    method: 'get',
    params,
    // responseType: 'blob'
  })
}

// 修改争议
export function updateControversy(data) {
  return request({
    url: '/system/order-expect-price-info/updateControversy',
    method: 'post',
    data: data
  })
}

// 批量出库
export function outboundOrder(data) {
  return request({
    url: '/system/order-expect-price-info/outboundOrder',
    method: 'post',
    data: data
  })
}

export function outboundOrderById(data) {
  return request({
    url: '/system/order-expect-price-info/outboundOrderById',
    method: 'post',
    data: data
  })
}


